package com.hundsun.yr.universal.p2p.presenter.impl;

import android.content.Context;

import com.hundsun.yr.universal.p2p.interactor.base.SegmentInteractor;
import com.hundsun.yr.universal.p2p.presenter.base.Presenter;
import com.hundsun.yr.universal.p2p.view.base.BaseSegmentView;


/**
 * @Title: BaseSegmentPresenterImpl.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @date 2015-12-29 上午10:38:05 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class BaseSegmentPresenterImpl implements Presenter{
	
	 private Context mContext = null;
	 private BaseSegmentView mBaseSegmentView = null;
	 private SegmentInteractor mInteractor;
	
	public BaseSegmentPresenterImpl(Context context,BaseSegmentView segmentView,SegmentInteractor interactor) {
		// TODO Auto-generated constructor stub
		if (null == segmentView) {
            throw new IllegalArgumentException("Constructor's parameters must not be Null");
        }
		this.mContext=context;
		this.mBaseSegmentView=segmentView;
		this.mInteractor=interactor; 
	}
	

	@Override
	public void initialized() {
		// TODO Auto-generated method stub
		mBaseSegmentView.initializeViews(mInteractor.getFragments(mContext));
	}

}
